package com.nt.thah.constant;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @Description: 系统配置参数
 * @author: ls
 * @Date: 2020/7/14 13:56
 */
@Component
@Data
public class WebConfig {

    /**
     * 微信公众号appId
     */
    @Value("${wx.appId:}")
    private String appId;

    /**
     * 微信公众号appSecret
     */
    @Value("${wx.appSecret:}")
    private String appSecret;

    /**
     * 微信验证码模板id
     */
    @Value("${wx.verifyCodeTemplateId:}")
    private String verifyCodeTemplateId;

    /**
     * 收益提醒模板id
     */
    @Value("${wx.incomeNoticeTemplateId:}")
    private String incomeNoticeTemplateId;

    /**
     * 提现成功通知模板id
     */
    @Value("${wx.withdrawalSuccessTemplateId:}")
    private String withdrawalSuccessTemplateId;

    /**
     * 提现失败通知模板id
     */
    @Value("${wx.withdrawalFailTemplateId:}")
    private String withdrawalFailTemplateId;

    /**
     * 新订单模板id
     */
    @Value("${wx.newOrderTemplateId:}")
    private String newOrderTemplateId;

    /**
     * 订单进度模板id
     */
    @Value("${wx.orderProcessTemplateId:}")
    private String orderProcessTemplateId;

    /**
     * oss的accessKey
     */
    @Value("${oss.accessKey: LTAI4G8ct17ymvoo91fyPVoZ}")
    private String ossAccessKey;

    /**
     * oss的accessKeySecret
     */
    @Value("${oss.accessKeySecret: LKMSaIEvyFVFOg2vz5oCKtI5xNXJs6}")
    private String ossAccessKeySecret;

    /**
     * oss的endPoint
     */
    @Value("${oss.endPoint: oss-cn-zhangjiakou.aliyuncs.com}")
    private String ossEndPoint;

    /**
     * oss的bucket名称
     */
    @Value("${oss.bucket: thah}")
    private String ossBucket;

    /**
     * oss的原始domainName
     */
    @Value("${oss.originDomainName: https://thah.oss-cn-zhangjiakou.aliyuncs.com/}")
    private String originOssDomainName;

    /**
     * oss的domainName
     */
    @Value("${oss.myDomainName: https://oss.tanhuiah.com/}")
    private String myOssDomainName;

    /**
     * 合伙人域名
     */
    @Value("${sysConfig.agentDomainName: https://app.tanhuiah.com}")
    private String agentDomainName;
}
